package cn.itcast.n3_Java线程;

import lombok.extern.slf4j.Slf4j;

/**
 * @program: juc
 * @description:
 * @author: flyduck
 * @create: 2024-08-28 15:17
 **/
@Slf4j(topic = "c.Test07_start和run方法_多次调用start会报异常")
public class Test07_start和run方法_多次调用start会报异常 {
    public static void main(String[] args) {
        Thread t1 = new Thread("t1"){
            @Override
            public void run() {
                log.debug("running...");
            }
        };
        t1.start();
        t1.start();//IllegalThreadStateException

    }

}
